home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 24 / ansi137.zip / ANSI.DOC < prev    next >
Text File  |  1991-04-23  |  7KB  |  132 lines

  1. ANSI.COM
  2. Command
  3.  
  4. Michael J. Mefford
  5. 1989 No. 2 (Utilities)
  6.  
  7.  
  8. Purpose:        A memory-resident utility that enables selectable use of the
  9. extended screen and keyboard control sequences that normally require loading the
  10. ANSI.SYS device driver.  Unlike ANSI.SYS, ANSI.COM supports all video modes,
  11. permits sizing and clearing the key-assignment buffer, and provides high-speed
  12. screen updating.
  13.  
  14. Format: ANSI [FAST | SLOW][ON | OFF][KON | KOFF][PON | POFF]
  15.              [/B nnn][/P nn][/C][/U][/Q][/T]
  16.  
  17. Remarks:        ANSI.COM may be installed either at the DOS prompt or through an
  18. AUTOEXEC.BAT file.  It will not load itself if ANSI.SYS has already been loaded
  19. as part of a CONFIG.SYS file.  ANSI.COM will not load multiple copies of itself,
  20. so its command name may be invoked repeatedly in the same session to change
  21. user-selectable parameters.
  22.  
  23.         Upon loading, ANSI defaults to the FAST and ON status parameters.  For
  24. use with IBM CGA video cards (where direct screen writes produce "snow") or with
  25. some screen capture software, the SLOW (screen writing via the BIOS, as with
  26. ANSI.SYS) status option may be selected.  Entering ANSI OFF disables recognition
  27. of the ANSI control codes (but reassigned keys are still functional).
  28.  
  29.         Also upon loading ANSI defaults to KON and PON status parameters.
  30. Entering POFF disables the ANSI reassignment function so no new reassignments
  31. can be entered until reactivated by PON. Current assignments are still active.
  32. This prevents unauthorized changes to you keyboard being made by silly people
  33. who embed ANSI sequences into text documents to do harm to your system.
  34. Entering KOFF disables the ANSI reassignments but still allows new assignments
  35. to be made to the buffer or old ones removed. This allows simple ON / OFF
  36. control of assigments without clearing the buffer and reloading each time
  37. when a particular program is affected by the assignments.  All keyboard
  38. reassignments in the buffer become active again upon the issuing PON. The /Q
  39. switch can be used to suppress output when executed. /P nn can be used to
  40. protect a number of lines at the top of the screen from being scrolled when
  41. the cursor reaches the bottom of the screen. Scrolling will occur starting
  42. at the line specified (Zero is the top line and the Default setting.)
  43. /P* will use the line above the current line.                                |
  44.  
  45.         The ANSI.COM key assignment buffer defaults to a size of 200 bytes.  The
  46. buffer may be increased to as much as 60K or decreased to 0 bytes by entering
  47. ANSI with the /B switch and the desired number of bytes as nnn.  Resizing the
  48. buffer after initial installation requires deinstallation, which may be
  49. accomplished using the /U switch.  Current key assignments are lost if the
  50. buffer is resized.  The buffer can be cleared without resizing by invoking ANSI
  51. with the /C switch.
  52.  
  53.         The full command set of IBM-ANSI control sequences is printed in the
  54. original article and in the DOS Technical Reference manual.  This information
  55. can also be downloaded from PC Magnet.
  56.  
  57.         Available for downloading from PC MagNet (see the ANSI by Modem
  58. sidebar), ANSI.COM is already compiled and ready to run.  ANSI.BAS will
  59. automatically create ANSI.COM when run once in BASIC.  To create ANSI.COM from
  60. the ANSI.ASM source code requires use of a macro assembler (IBM or Microsoft,
  61. Version 2 or later) and the following commands:
  62.  
  63.        New /T option added to test if installed. Attempts to do an uninstall
  64. without actually uninstalling. If Not Installed an Errorlevel of 1 occurs.
  65. If already installed the status switches are returned in the ErrorLevel as    |
  66. follows:        OFF    1                                                      |
  67.                 ON     2                                                      |
  68.                 SLOW   4                                                      |
  69.                 FAST   8                                                      |
  70.                 KOFF   16                                                     |
  71.                 KON    32                                                     |
  72.                 POFF   64                                                     |
  73.                 PON    128                                                    |
  74. If not already installed, the program will not be installed when testing.     |
  75.  
  76.        New /S option will load stat. data from ANSICOM.SYS file for PCBoard
  77. @Variable@ substitution. This file can be created by another program (I
  78. will write one soon in QuickBasic) which reads PCBoard.DAT, CNAMES, User.Sys
  79. and User.Inf and formats the data into the required format of ANSICOM.SYS.
  80. ANSICOM.ASM shows the format of the storage. The length must be 495 Bytes
  81. (extra will be ignored, less will issue error message.) Issuing the /S option
  82. without ANSICOM.SYS being present in the current directory will result in an
  83. error message also.
  84.  
  85.         If the position in a set cursor position command is beyond the bounds
  86. of the screen then the highest row or column, as appropriate, is used.
  87.  
  88.  Update 3/2/89 - Fix for DOS function 0Bh, Check Standard Input Status
  89.                      and STDIN in ANSI_INT_21 handler.
  90.                  Leading zero inserted for Device Status Report for
  91.                      single digit cursor positions.
  92.                  INFORMATION typo 40 for 40H.
  93.                  WRITE_FAST modified to handle CR and LF instead of
  94.                      WRITE_CHAR.
  95.  Update 3/7/89 - Fix for CLS in graphics mode.          Version 1.2
  96.  
  97.  Update 8/8/89 - STI added to INT 21 and 29 handler.    Version 1.3
  98.  
  99.  Update 01/01/90 - [KON | KOFF] and [PON | POFF] added  Version 1.31
  100.  
  101.  Update 03/23/90 - /Q option added for no output when exectued  1.32
  102.  
  103.  Update 05/16/90 - removed Syntax from output unless needed     1.33
  104.                    added /T test for load.
  105.  
  106.  Update 10/28/90 - added /P nn command to 'Protect' nn lines    1.34
  107.                    at the top of the screen from scrolling
  108.                    up when the bottom of the screen is reached.
  109.  
  110.  Update 12/01/90 - Added PCBoard @X## color code support        1.35
  111.                    also added @Variable@ Support
  112.                    added /S to load stats data from file
  113.  
  114.  Update 12/12/90 - My mistake, I didn't realize @X00 saved      1.36
  115.                    the color and @XFF restored it. Works now.
  116.                    Also made prompts return to start of line
  117.                    when cleared (like PCBoard does) & QON
  118.                    now changes @MORE@ & @PAUSE@ into @WAIT@
  119.                    Gary Meeker (Versions 1.31 to 1.36)
  120.  
  121.  Update  4/20/91 - Change set cursor routine. If new position   1.37
  122.                    is off the screen use the last row or column.
  123.                    Added switch to not include PCB code.
  124.                    Corrected syntax display.
  125.                    Modified CLS to honor protected (/P) lines
  126.                    Modified /T to returned status switches.
  127.                    Modified /P to accept * to mean current row-1.
  128.  
  129. MASM ANSI;
  130. LINK ANSI;
  131. EXE2BIN ANSI ANSI.COM;
  132.